package edu.sctu.practice.class02.Wangpeng.Test26;

/**
 * Created by wp on 2015/11/13.
 */
public abstract class Role {
    private int age;
    private String name;

    public Role(int a){
        this.setAge(a);
    }
    public Role(String b){
        this.setName(b);
    }
    public Role(int a,String b){
        this(a);
        this.setName(b);
    }
    public void setAge(int a){
        age=a;
    }
    public void setName(String b){
        name=b;
    }
    public int getAge(){
        return age;
    }
    public String getName(){
        return name;
    }
    public abstract void play();
}
